package service;

import dao.UserDao;
import dao.UserDaoImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

    @Service("userService")
    public class UserServiceImpl implements UserService {

        @Autowired
        private UserDao userDAO;

        @Override
        public void deleteUser(Integer id) {
            System.out.println("delete User in Service");
            UserDaoImpl.deleteStu(3);
        }

    public void setUserDAO(UserDaoImpl userDAO) {
        this.userDAO = userDAO;
    }
}
